Agent Class Reference

#include <Agent.h>

List of all members.

Public Member Functions

 Agent (bool *run, unsigned char protocol, unsigned short port, unsigned long address, char *team, int id, float playGroundLength, float playGroundWidth, float goalWidth, float goalHeight)
void start ()
virtual ~Agent ()


Detailed Description

Trieda Agent umoznuje vytvorit agenta na serveri a umoznuje mu zacat hrat na serveri.
Author:
Michal Kvetan
Version:
8.12.11

Constructor & Destructor Documentation

Agent::Agent ( bool *  run,
unsigned char  protocol,
unsigned short  port,
unsigned long  address,
char *  team,
int  id,
float  playGroundLength,
float  playGroundWidth,
float  goalWidth,
float  goalHeight 
)

Konstruktor Agent() vytvori agenta na serveri.

Parameters:
run - Premenna urcujuca, ci agent ma este bezat na serveri.
protocol - Protokol, cez ktory je mozne komunikovat so serverom. Ak protocol je:
  • 6, tak agent bude komunikovat so serverom prostrednictvom protokolu TCP.
  • 17, tak agent bude komunikovat so serverom prostrednictvom protokolu UDP.
port - Port v "network byte order", na ktorom je mozne komunikovat so serverom.
address - Adresa servera v "network byte order".
team - Tim agenta.
id - Cislo agenta.
playGroundLength - Dlzka ihriska.
playGroundWidth - Sirka ihriska.
goalWidth - Sirka brany.
goalHeight - Vyska brany.

Agent::~Agent (  )  [virtual]

Destruktor ~Agent() zrusi agenta zo servera.


Member Function Documentation

void Agent::start (  ) 

Metoda start() umoznuje agentovi zacat hrat na serveri.


The documentation for this class was generated from the following files:

Generated on Sat Jun 13 21:26:57 2009 for Robocup3D by  doxygen 1.5.9